﻿using System;
using System.ServiceModel;

namespace Gpf.Whs.YouTubeDownloader.CommSrv
{
    [ServiceContract]
    public interface IYouTubeDownloaderCommSrv
    {
        [OperationContract]
        YouTubeVideoInfo GetFormats(string url);

        [OperationContract]
        void DownloadFile(string url, Guid folderId, byte format);

        [OperationContract]
        DownloadItemStatus[] GetItemStatuses();

        [OperationContract]
        FolderData[] GetSharedMediaFolders();

        [OperationContract]
        void CancelDownload(string key);
    }
}